DROP TABLE IF EXISTS jms_dim.dim_lmdm_sys_payment_man;
CREATE EXTERNAL TABLE jms_dim.dim_lmdm_sys_payment_man(
 ID bigint comment "",  --NUMBER(11)
 CODE string comment "付款方式编码",  --NVARCHAR2(20)
 NAME string comment "名称",  --NVARCHAR2(60)
 EN_NAME string comment "英文名称",  --NVARCHAR2(60)
 CN_NAME string comment "中文名称",  --NVARCHAR2(60)
 COUNTRY_ID bigint comment "所属国家id",  --NUMBER(11)
 IS_SETTLEMENT_DATE smallint comment "是否输入结算日期:1是,2否",  --NUMBER(4)
 IS_ENABLE smallint comment "是否启用:1启用,2不启用",  --NUMBER(4)
 IS_DELETE smallint comment "是否删除:1未删除,2已删除",  --NUMBER(4)
 CREATE_BY bigint comment "创建人ID",  --NUMBER(11)
 UPDATE_BY bigint comment "最后更新人ID",  --NUMBER(11)
 CREATE_BY_NAME string comment "创建人名称",  --NVARCHAR2(50)
 UPDATE_BY_NAME string comment "最后修改人名称",  --NVARCHAR2(50)
 CREATE_TIME timestamp comment "创建时间",  --DATE
 UPDATE_TIME timestamp comment "更新时间",  --DATE
 VERSION string comment "版本号",  --NVARCHAR2(10)
 SORT smallint comment "排序"  --NUMBER(4)
 )
 COMMENT '结算方式维表'
 STORED AS PARQUET
 LOCATION '/dw/hive/jms_dim.db/external/dim_lmdm_sys_payment_man'
 TBLPROPERTIES (
 'discover.partitions'='false',
 'parquet.column.index.access'='true'
 );